package com.woniuxy.oldmanapi.mapper;
import java.util.List;
import com.woniuxy.oldmanapi.entity.CategoryType;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface CategoryTypeMapper extends Mapper<CategoryType> {
    @Select("select * from category_type where type_id=#{id}")
    List<CategoryType> selectById(int id);
    @Select("select category from category_type where id=#{id}")
    String selectByOcid(int parseInt);
}